using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace SecurityLinkUp
{
    public partial class ContactUser : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // display the name info for to and from
            Guid userid = new Guid(Page.Request.QueryString["userid"]);
            User touser = UserData.GetUser(userid);
            messageto.Text = touser.name;
            User fromuser = UserData.GetUser((Guid)Membership.GetUser().ProviderUserKey);
            messagefrom.Text = fromuser.name;

        }

        protected void SendBtn_Click(object sender, EventArgs e)
        {
            // would send data via configured SMTP settings
            // dont have these right now, so just say "sent" for now

            ErrorMessage.Text = "Message sent";
            subject.Text = "";
            message.Text = "";
            
        }
    }
}
